package com.service;

import java.util.List;

import com.dao.ContactDao;
import com.entity.Contact;


public class ContactService {
	
	ContactDao cdao = new ContactDao();
		
	public void addContact(Contact c) {
		cdao.addContent(c);
	}

	public List<Contact> findAllByPid(String pid) {
		return cdao.findAllByPid(pid);
	}

	public Contact getById(String id) {
		return cdao.getById(id);
	}

	public void updateContact(Contact c) {
		cdao.updateContact(c);
		
	}

	public void delete(String id) {
		cdao.delete(id);
	}

	

}
